<?php
session_start();
?>

<!DOCTYPE html>
<html>
<head>
	<title>登录</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<link rel="stylesheet" type="text/css" href="dist/css/bootstrap.css">
</head>
<body>
<div class="container">
	<div class="row">
		<div class="col-md-3"></div>
			<div class="col-md-6">
			<form role="form" action="loginAct.php" method="post" enctype="multipart/form-data">
				<h2 class="text-center">用户登录</h2>
			<div class="form-group">
				<label for="name">用户名：</label>
				<input class="form-control" type="text" name="name" placeholder="请输入用户名" id="name" value=""/>
			</div>
			<div class="form-group">
				<label for="password">密码：</label>
				<input class="form-control" type="password" name="password" placeholder="请输入密码" id="password" value=""/>
			</div>
			<div class="form-group">
				<label for="yzm">验证码：</label>
				<input type="text" name="yzm" placeholder="请输入验证码" id="yzm" value=""/>
				<img src="tools/captcha.php">
			</div>
			<div class="form-group">
				<label for="name">自动登录：</label>
				<input type="checkbox" name="login" value="1"/>七天有效
			</div>
			<div class="form-group">
				<button>登录</button>
			</div>
			<div class="form-group">
				<?php if (isset($_SESSION['user1'])) {
							echo $_SESSION['user1'];
							unset($_SESSION['user1']);
						}?>
			</div>
		</form>	
		<div class="col-md-3"></div>
		</div>
	</div>
</div>
</body>
</html>	